import {request, callFunc} from "../request.js"

export function getAllStoreList(data) {
	return request({
		url: "/api-user/sys/sysStore/notAuth/getAllStoreList",
		needAuth: false,
		data
	})
}

export function getStoreListByIds(data) {
	return request({
		url: "/api-user/sys/sysStore/notAuth/getStoreListByIds",
		needAuth: false,
		data
	})
}

export function applyJoinUs(data) {
	return request({
		url: "/api-user/joinusapply/save",
		needAuth: false,
		method: "post",
		data
	})
}

export function getAllRentGoodsList(data) {
	return request({
		url: "/api-user/sysrentgoods/list",
		data
	})
}

// 查询商家入驻信息
export function querySettledInfo(data, showLoading) {
	return callFunc({
		showLoading,
		funcName: "uni-admin",
		data: {
			action: 'enter-apply/querySettledInfo',
			data: data
		}
	})
}

// 商家入驻
export function enterApply(data, showLoading) {
	return callFunc({
		showLoading,
		funcName: "uni-admin",
		data: {
			action: 'enter-apply/enterApply',
			data: data
		}
	})
}
